<!DOCTYPE html>
<html lang="zh-CN">
  <head>
	<?php require APP_PATH_WEB_ANLS.'Report/common/web_doc_meta.php';?>
    <title>配置</title>
    <?php require APP_PATH_WEB_ANLS.'Report/common/web_doc_link.php';?>
    <?php require APP_PATH_WEB_ANLS.'Report/common/web_doc_script.php';?>
	<style>
        #dataView {display: none; position: absolute;z-index:9999999;background-color: border: 1px solid #f9f9f9; background-color: white;
            padding: 5px;
           }
        .tr_bg_red { background-color: #c52d2d !important; color: white !important;}
    </style>

    <script type="text/javascript">


		function submitForm(){
			var inpForm = $("#inpForm");
			var values = inpForm.serialize();
			inpForm.attr("action","/Anls/trade/exec");
			inpForm.submit();
		}
		
		$(function(){
		});
    </script>
  </head>

  <body>
    <?php require APP_PATH_WEB_ANLS.'Report/common/nav.php';?>
    <div class="container-fluid">
      <div class="row">
        <?php require APP_PATH_WEB_ANLS.'Report/common/sidebar.php';?>
        
          <h2 class="sub-header">交易测试</h2>
          <form class="form-horizontal" id="inpForm" action="#" method="get" target="_blank">
          		
          	  <div class="form-group ">
			  	<label for="code" class="col-sm-1 control-label">代码</label>
			    <div class="col-sm-2">
			    	<input type="text" class="form-control" name="code" id="code" value="" />
			    </div>
			  </div>
			  
			  <div class="form-group">
			    <label for="symbolType" class="col-sm-1 control-label">品种</label>
			    <div class="col-sm-2">
			    	<select  class="form-control" name="symbolType" id="symbolType">
			      		<option selected="selected" value="stock">stock</option>
			      	</select>
			    </div>
			  </div>
			  
			  <div class="form-group">
			    <label for="tradeType" class="col-sm-1 control-label">买卖</label>
			    <div class="col-sm-2">
			    	<select  class="form-control" name="tradeType" id="tradeType">
			      		<option selected="selected" value="buy">买</option>
			      	</select>
			    </div>
			  </div>
			  
			  <div class="form-group">
			    <label for="period" class="col-sm-1 control-label">周期</label>
			    <div class="col-sm-2">
			      <select  class="form-control" name="period" id="period">
			      	<option selected="selected" value="1day">1day</option>
			      </select>
			    </div>
			  </div>
			  
			  <div class="form-group">
			  	<label for="openStrategyExpr" class="col-sm-1 control-label">开仓策略</label>
			    <div class="col-sm-10">
			    	<input type="text" class="form-control" name="openStrategyExpr" id="openStrategyExpr" value="B(MA_5)E(cross)B(MA_10)" />
			    </div>
			  </div>
			  
			  <div class="form-group">
			  	<label for="closeStrategyExpr" class="col-sm-1 control-label">平仓策略</label>
			    <div class="col-sm-10">
			    	<input type="text" class="form-control" name="closeStrategyExpr" id="closeStrategyExpr" value="B(MA_10)E(cross)B(MA_5)" />
			    </div>
			  </div>
			  
			  
			  <div class="form-group">
			    <div class="col-sm-offset-1 col-sm-1">
			      <input type="button" onclick="submitForm()" class="btn btn-default" value="提交" />
			    </div>
			  </div>
			</form>
          
          
        </div>
      </div>
      
    </div><!-- end main -->

  </body>
</html>
